<?php
namespace app\admin\validate;
use think\Validate;

class ShopStore extends Validate
{
    protected $rule = [
        'name' => 'require',
        'logo' => 'require',
        'contact' => 'require',
        'phone' => 'require',
        'pro_id' => 'require',
        'city_id' => 'require',
        'area_id' => 'require',
        'detail' => 'require',
        'work_start_time' => 'require',
        'work_end_time' => 'require',
        'latlon' => 'require',
        'address_detail' => 'require',
    ];

    protected $message = [
        'name.require' => '门店名称不能为空',
        'logo.require' => '门店logo不能为空',
        'contact.require' => '联系人不能为空',
        'phone.require' => '门店电话不能为空',
        'pro_id.require' => '请选择门店所在省',
        'city_id.require' => '请选择门店所在市',
        'area_id.require' => '请选择门店所在区/县',
        'detail.require' => '门店简介不能为空',
        'work_start_time.require' => '门店开始营业时间不能空',
        'work_end_time.require' => '门店结算营业时间不能空',
        'latlon.require' => '请选择门店经纬度',
        'address_detail.require' => '门店详细地址不能为空',
    ];
    

}